//package cn.enilu.guns.admin.core.Strategy;
//
//import org.hibernate.boot.model.naming.Identifier;
//import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl;
//import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
//import org.springframework.stereotype.Component;
//
//@Component
//public class MySQLLowerCaseStrategy extends PhysicalNamingStrategyStandardImpl {
//
//    private static final long serialVersionUID = 1383021413247872469L;
//
//
//    @Override
//    public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) {
//        // 将表名全部转换成小写
//        String tableName = name.getText().toUpperCase();
//
//        return name.toIdentifier(tableName);
//    }
//
//}
//#spring.jpa.hibernate.naming.physical-strategy=cn.enilu.guns.admin.core.Strategy.MySQLLowerCaseStrategy